<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head><title>新增学生</title></head>
<body>
<h2>新增学生</h2>
<form th:action="@{/saveMentee}" method="post" enctype="multipart/form-data">
  姓名：<input type="text" name="name" th:value="${mentee.name}" /><br>
  <div th:if="${#fields.hasErrors('mentee.name')}" th:errors="*{mentee.name}"></div><br>

  Java 成绩：<input type="number" name="javaScore" th:value="${mentee.javaScore}" /><br>
  <div th:if="${#fields.hasErrors('mentee.javaScore')}" th:errors="*{mentee.javaScore}"></div><br>

  头像上传：<input type="file" name="avatarFile" /><br><br>

  <input type="submit" value="保存">
</form>
<a href="/">返回首页</a>
</body>
</html>
